Ext.define('TS.view.bible.verse.Form', {
    extend: 'TS.lib.Form',
    alias : 'widget.verseform',
    title : 'Wersy',
	url:URL.bible.form.verse,
	items:[
		{xtype:'hidden',name:'verse_id'},
		{xtype:'text',fieldLabel:'Numer',name:'verse_number'},
		{xtype:'combo',fieldLabel:'Księga',name:'book_id',store:Dict.book},
		{xtype:'combo',fieldLabel:'Chapter',name:'chapter_id',store:Dict.chapter}
	],
	buttons:[{
		text:'Zapisz',
		handler:Util.f.save,
		callback:function(){
			Dict.verse.load();
			Util.store('Verse').load();
		}
	},{
		text:'Nowy',
		handler:Util.f.clear
	},{
		text:'Usuń',
		handler:Util.f.del,
		handlerConfig:{
			url:URL.bible.del.verse
		}
	}]
});